// router/index.js - 路由配置文件
import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import ImageQuestionInputPage from '@/views/ImageQuestionInputPage.vue'
import About from '@/views/About.vue'
import Metadata from '@/views/Metadata.vue'
import SystemSettings from '@/views/SystemSettings.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/image-question-input',
    name: 'ImageQuestionInputPage',
    component: ImageQuestionInputPage
  },
    {
      path: '/about',
      name: 'about',
      component: About
    },
    {
      path: '/metadata',
      name: 'metadata',
      component: Metadata
    },
    {
      path: '/settings',
      name: 'settings',
      component: SystemSettings
    }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
